package com.burgeon.backend.SHOP.mappers;

import com.burgeon.backend.SHOP.entity.*;

import java.math.BigDecimal;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

public interface BargainMapper {

    Integer upBargainStateByOid(String oid,String state);

    BargainItem findBargainItemByUidBarid(String bid,String uid);

    Integer upBargainBeanState(String id,String state);

    Integer upBargainData(String id,String state,String store,String oid,String self,String method);

    BargainOrder findBargainOrderByUidBarid(String bid,String uid);

    Integer upBargainState(String id,String state);

    Integer createBargainItem(BargainItem bargainItem);

    Integer upBalance(String id, BigDecimal knife);

    BargainOrder findBargainOrderById(String id);

    List<BargainItem> findBargainItemByID(String id);

    BargainVO findBargainItemVO(String id);

    BargainBean findBargainBeanByID(String id);

    Integer createBargain(BargainOrder bargainOrder);//创建砍价单

    Goods showGoodsById(String id);

    CopyOnWriteArrayList<BargainBean> getBargainList(String token);

    String findUserByUid(String uid);

}
